<?php
$sub_menu = "230100";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "w");

check_token();

$cf_paypal_dollar = sprintf("%.5f", $cf_paypal_dollar);

$sql = "replace into $mw_cash[cash_config_table]
	set cf_cash_name	= '$cf_cash_name',
	    cf_cash_unit	= '$cf_cash_unit',
	    cf_cash_price	= '$cf_cash_price',
	    cf_cash_point	= '$cf_cash_point',
	    cf_tax		= '$cf_tax',
	    cf_charge_min	= '$cf_charge_min',
	    cf_card_min		= '$cf_card_min',
	    cf_possible_day	= '$cf_possible_day',
	    cf_point		= '$cf_point',
	    cf_point_level	= '$cf_point_level',
	    cf_cash_to_point	= '$cf_cash_to_point',
	    cf_cash_to_point_level = '$cf_cash_to_point_level',
	    cf_point_min	= '$cf_point_min',
	    cf_point_save	= '$cf_point_save',
	    cf_card		= '$cf_card',
	    cf_hp		= '$cf_hp',
	    cf_account		= '$cf_account',
	    cf_account_num	= '$cf_account_num',
	    cf_bank		= '$cf_bank',
	    cf_sms		= '$cf_sms',
	    cf_icode_id		= '$cf_icode_id',
	    cf_icode_pw		= '$cf_icode_pw',
	    cf_sms_content	= '$cf_sms_content',
	    cf_sms_account	= '$cf_sms_account',
	    cf_admin_sms	= '$cf_admin_sms',
	    cf_admin_sms_content= '$cf_admin_sms_content',
	    cf_admin_sms_return	= '$cf_admin_sms_return',
	    cf_pg		= '$cf_pg',
	    cf_lg_mid		= '$cf_lg_mid',
	    cf_lg_mertkey	= '$cf_lg_mertkey',
	    cf_kcp_site_cd	= '$cf_kcp_site_cd',
	    cf_kcp_site_key	= '$cf_kcp_site_key',
	    cf_allthegate_mid	= '$cf_allthegate_mid',
	    cf_inipay_mid	= '$cf_inipay_mid',
	    cf_inipay_admin	= '$cf_inipay_admin',
	    cf_kg_mxid	        = '$cf_kg_mxid',
	    cf_kg_mxotp	        = '$cf_kg_mxotp',
	    cf_paypal	        = '$cf_paypal',
	    cf_paypal_email     = '$cf_paypal_email',
	    cf_paypal_dollar	= '$cf_paypal_dollar',
	    cf_paypal_foreign	= '$cf_paypal_foreign',
	    cf_happybean	= '$cf_happybean',
	    cf_membership_icon	= '$cf_membership_icon',
	    cf_membership_head	= '$cf_membership_head',
	    cf_membership_tail	= '$cf_membership_tail',
	    cf_membership_board_list	= '$cf_membership_board_list',
	    cf_sms_return	= '$cf_sms_return'";
sql_query($sql);

goto_url("./mw.cash.config.php");
